﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions">

    <!-- Create mnuNicolasBrush -->
    <LinearGradientBrush x:Key="mnuNicolasBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF71FF00" Offset="0"/>
        <GradientStop Color="Black" Offset="1"/>
        <GradientStop Color="#FF305C0E" Offset="0.741"/>
        <GradientStop Color="#FF74B243" Offset="0.526"/>
        <GradientStop Color="#FF9DD472" Offset="0.341"/>
        <GradientStop Color="White" Offset="0.198"/>
    </LinearGradientBrush>

    <!-- Create mnuNicolasHyperlinkButtonStyle -->
    <Style x:Key="mnuNicolasHyperlinkButtonStyle" TargetType="HyperlinkButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="HyperlinkButton">
                    <Grid>
                		<VisualStateManager.VisualStateGroups>
                			<VisualStateGroup x:Name="CommonStates" ei:ExtendedVisualStateManager.UseFluidLayout="True">
                				<VisualStateGroup.Transitions>
                					<VisualTransition GeneratedDuration="0:0:0.7"/>
                				</VisualStateGroup.Transitions>
                				<VisualState x:Name="Disabled"/>
                				<VisualState x:Name="Normal"/>
                				<VisualState x:Name="MouseOver">
                					<Storyboard RepeatBehavior="Forever">
                						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock">
                							<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.8"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.7"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.6"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.5"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0.4"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0.3"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0.2"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="0.1"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
                						</DoubleAnimationUsingKeyFrames>
                						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock1">
                							<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.9"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.8"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.7"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.6"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.5"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0.4"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0.3"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0.2"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="0.1"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
                							<EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
                						</DoubleAnimationUsingKeyFrames>
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="Pressed"/>
                			</VisualStateGroup>
                		</VisualStateManager.VisualStateGroups>
                    	<VisualStateManager.CustomVisualStateManager>
                    		<ei:ExtendedVisualStateManager/>
                    	</VisualStateManager.CustomVisualStateManager>
                		<TextBlock x:Name="textBlock" Height="40" TextWrapping="Wrap" Text="{TemplateBinding Content}" VerticalAlignment="Center" FontFamily="Calibri" FontWeight="Bold" FontSize="22" HorizontalAlignment="Left" Margin="0,0,0,2" Foreground="{StaticResource mnuNicolasBrush}"/>
                		<Rectangle Height="1" Margin="5,0,0,37" Stroke="Red" StrokeThickness="2" VerticalAlignment="Bottom" RadiusX="5" RadiusY="5" Fill="Red" HorizontalAlignment="Center" Width="160"/>
                		<TextBlock x:Name="textBlock1" Height="36" TextWrapping="Wrap" Text="{TemplateBinding Tag}" VerticalAlignment="Bottom" FontFamily="Times New Roman" FontWeight="Bold" TextAlignment="Right" FontSize="14">
                			<TextBlock.Foreground>
                				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                					<GradientStop Color="White" Offset="0"/>
                					<GradientStop Color="White" Offset="1"/>
                					<GradientStop Color="#FFE9D4D4" Offset="0.233"/>
                					<GradientStop Color="#FFC8B9B9" Offset="0.448"/>
                					<GradientStop Color="#FFCAB7B7" Offset="0.664"/>
                					<GradientStop Color="White" Offset="0.828"/>
                				</LinearGradientBrush>
                			</TextBlock.Foreground>
                		</TextBlock>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Create NicolasTitleBrush -->
    <LinearGradientBrush x:Key="NicolasTitleBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF956A95" Offset="0"/>
        <GradientStop Color="#FFE08DE0" Offset="1"/>
        <GradientStop Color="#FFA570A5" Offset="0.263"/>
        <GradientStop Color="#FF9D529D" Offset="0.478"/>
        <GradientStop Color="#FF956795" Offset="0.664"/>
        <GradientStop Color="#FF8D548D" Offset="0.841"/>
    </LinearGradientBrush>

    <!-- Create 	txtNicolasBrush -->
    <SolidColorBrush x:Key="txtNicolasBrush" Color="Silver"/>

    <!-- Create brdNicolasBrush -->
    <LinearGradientBrush x:Key="brdNicolasBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="Lime" Offset="0"/>
        <GradientStop Color="#FF8399A9" Offset="0.375"/>
        <GradientStop Color="Lime" Offset="0.375"/>
        <GradientStop Color="Lime" Offset="1"/>
    </LinearGradientBrush>

    <!-- Create NicolasSelectionForegroundBrush -->
    <SolidColorBrush x:Key="NicolasSelectionForegroundBrush" Color="Lime"/>

    <!-- Create SubmitButtonStyle -->
    <Style x:Key="SubmitButtonStyle" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <VisualStateManager.CustomVisualStateManager>
                            <ei:ExtendedVisualStateManager/>
                        </VisualStateManager.CustomVisualStateManager>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates" ei:ExtendedVisualStateManager.UseFluidLayout="True">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="0:0:0.3"/>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Normal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="rectangle" />
                                        <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(Shape.Fill).(Brush.Opacity)" Storyboard.TargetName="rectangle" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation Duration="0" To="#FFF3ACAC" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="rectangle" />
                                        <ColorAnimation Duration="0" To="#FF584545" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(Shape.Fill).(Brush.Opacity)" Storyboard.TargetName="rectangle" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="rectangle" Stroke="Lime" RadiusX="5" RadiusY="5" StrokeThickness="2">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="Black" Offset="0"/>
                                    <GradientStop Color="White" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        <TextBlock TextWrapping="Wrap" Text="Submit" TextAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
